<?php
require("/model/CountryModel.class.php");

class CountryController
{
    var $db;

    function __construct($db_link)
    {
        $this->db = $db_link;
    }

    function getCountry($id)
    {
        $c = new CountryModel($this->db);
        return $c->getCountry($id);
    }

    function getAllCountriesOnContinent($continent_id)
    {
        $c = new CountryModel($this->db);
        return $c->getAllCountriesOnContinent($continent_id);
    }
}
?>